import Login from "../pages/users/login.js";
import Reg from "../pages/users/reg.js";
import Info from "../pages/info/index.js";
import StudentsRoutes from "./student.js"

var routes = {
    '/login': () => {
        new Login();
    },
    '/reg': () => {
        new Reg();
    },
    '/info': {
        on() {
            new Info();
        },
        ...StudentsRoutes
    },
};

var router = Router(routes).configure({ recurse: 'forward' });
export default {
    init() {
        router.init();
        location.hash = location.hash || "/login";
    }
}
